package com.whmall.service.crm.provider;

import com.whmall.component.entity.dto.PageReqDTO;
import com.whmall.component.entity.dto.PageRspDTO;
import com.whmall.service.crm.api.SettleCollegeAccountApi;
import com.whmall.service.crm.entity.dto.invoice.SettleCollegeAccountAddReqDTO;
import com.whmall.service.crm.entity.dto.invoice.SettleCollegeAccountQueryReqDTO;
import com.whmall.service.crm.entity.dto.invoice.SettleCollegeAccountRspDTO;
import com.whmall.service.crm.entity.dto.invoice.SettleCollegeAccountUpdateReqDTO;
import com.whmall.service.crm.module.invoice.service.SettleCollegeAccountService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service(interfaceClass = SettleCollegeAccountApi.class)
public class SettleCollegeAccountProvider implements SettleCollegeAccountApi {

    @Autowired
    private SettleCollegeAccountService settleCollegeAccountService;

    @Override
    public PageRspDTO<SettleCollegeAccountRspDTO> query(SettleCollegeAccountQueryReqDTO reqDTO, PageReqDTO pageReqDTO) {
        return settleCollegeAccountService.query(reqDTO, pageReqDTO);
    }

    @Override
    public Long create(SettleCollegeAccountAddReqDTO reqDTO) {
        return settleCollegeAccountService.create(reqDTO);
    }

    @Override
    public void update(SettleCollegeAccountUpdateReqDTO reqDTO) {
        settleCollegeAccountService.update(reqDTO);
    }
}
